BEGIN {
  max = 1500
  for (i=0; i<=max; i++)
    a[i] = 0;
}

{
  a[$2]++;
}

END {
  for (i=0; i<=max; i++)
    print i, a[i];
}
